package com.bobi.tfca.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bobi.tfca.model.entity.ArticleEntity;
import com.bobi.tfca.model.entity.MemberEntity;
import com.bobi.tfca.model.vo.ArticleVO;

import java.util.List;

/**
 * 文章服务层
 * @author 李文发
 * @date 2024/4/3
 */
public interface ArticleService extends IService<ArticleEntity> {
    List<ArticleVO> findAllCultures();

    ArticleVO getArticleDetails(Integer articleId, MemberEntity member);

    Integer publishArticle(MemberEntity member, ArticleVO articleVO);

    Boolean deleteArticle(Integer articleId);

    Boolean likeArticle(MemberEntity member, Boolean isLiked, Integer articleId);
}
